home *** CD-ROM | disk | FTP | other *** search
/ VRML Browsing & Building Cyberspace / VRML - Browsing and Building Cyberspace.iso / examples / third.wrl < prev    next >
Text File  |  1995-06-14  |  399b  |  19 lines

  1. #VRML V1.0 ascii
  2.  
  3. # Example three - using the Separator and Material nodes
  4.  
  5. # Here comes the Sun
  6. # The Separator node groups everything within it together
  7. Separator {
  8.  
  9.     # The material will effect all subsequent nodes
  10.     # The sun is yellow, isn't it?  Additive color means red + green = yellow
  11.     Material {
  12.         diffuseColor 1 1 0        # MFColor
  13.     }
  14.  
  15.     Sphere {
  16.         radius 10        # Big Sun
  17.     }
  18. }
  19.